import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yang
 * Date: 2022-04-24
 * Time: 16:43
 */
public class Register {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        long password;
        int i=0;
        for (i = 0; i < 3; i++) {
            password = scan.nextLong();
            if(password == 123456) {
                System.out.println("登陆成功");
                break;
            }
            else{
                System.out.println("密码错误");
            }
        }
        if(i==3){
            System.out.println("输错三次，程序退出");
        }
    }
}
